for n in range(100, 1000):
    bai = n // 100
    shi = n % 100 // 10
    ge = n % 10
    if n == bai ** 3 + shi ** 3 + ge ** 3:
        print(n, "是水仙花数！")